Photographing Method, Photo Management Method and Device

ABSTRACT

A photographing method that includes: acquiring to-be-photographed first content; after determining a first subject with which a user is concerned in the first content, acquiring an image composition relationship between a second subject in the first content and the first subject, where the second subject is another background subject in the first content except the first subject; matching the image composition relationship between the second subject and the first subject with a preset image composition template to obtain a matching evaluation degree, and providing an image composition adjustment suggestion on the first content for the user according to the matching evaluation degree and the image composition template, where the adjustment suggestion is a tip on how to adjust the image composition relationship in the first content so that the image composition relationship completely matches the preset image composition template.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of International Application No.PCT/CN2014/070882, filed on Jan. 20, 2014, which claims priority toChinese Patent Application No. 201310222511.3, filed on Jun. 6, 2013,both of which are hereby incorporated by reference in their entireties.

TECHNICAL FIELD

Embodiments of the present invention relate to communicationstechnologies, and in particular, to a photographing method, and a photomanagement method and device.

BACKGROUND

Currently, with increasingly high requirements for photography, a usermore hopes to capture each classic moment, and hopes that a photo takenby the user is more professional. However, a nonprofessional personoften cannot take a professional photo, and therefore, cannot wellcapture a wonderful moment.

With the development of smart cameras, the smart cameras have scenemodes that switch automatically, for example, a smart camera detects acorresponding scene, and sets parameters correspondingly. For example,the scene modes include a portrait mode, a landscape mode, a macro mode,a sports mode, and the like. When a smart camera is used forphotographing a landscape, after detection by a sensor in the smartcamera, a mode with parameter settings most suitable for photographingthe landscape can be automatically switched to the landscape mode; whena lens of the smart camera is close to a subject to be photographed, themode can be automatically switched to the macro mode, therebyimplementing focusing a close subject for photographing. When the smartcamera photographs a moving subject, the mode is switched to the sportsmode, and a shutter speed increases. This technology meets requirementsof users for several most commonly used scenes, and parameters in somemodes with automatic settings also make a photo better.

However, the foregoing smart camera cannot help the user with framing orimage composition, that is, in a current photographing process, imagecomposition quality of a to-be-taken photo cannot be determined oradjusted, which results in a poor photographing result.

In addition, there are many photos in the current smart camera, of whichsome are taken with a good effect, and some are taken with a pooreffect. The current smart camera cannot automatically manage the photos,and instead the user has to view each photo in person, select and deletea photo taken with a poor effect, and sort through photos taken with asimilar effect.

SUMMARY

In view of this, embodiments of the present invention provide aphotographing method, and a photo management method and device, whichare used to solve the problem in the prior art that in a photographingprocess, image composition quality of photographing cannot be determinedor adjusted, which results in a poor photographing result; and inaddition, further solve the problem in the prior art that a smart cameracannot automatically manage a photo.

According to a first aspect, an embodiment of the present inventionprovides a photographing method, which includes: acquiringto-be-photographed first content; after determining a first subject withwhich a user is concerned in the first content, acquiring an imagecomposition relationship between a second subject in the first contentand the first subject, where the second subject is a background subjectin the first content except the first subject; matching the imagecomposition relationship between the second subject and the firstsubject with a preset image composition template to obtain a matchingevaluation degree; and providing an image composition adjustmentsuggestion on the first content for the user according to the matchingevaluation degree and the preset image composition template, where theadjustment suggestion is a tip on how to adjust the image compositionrelationship in the first content, so that the image compositionrelationship completely matches the preset image composition template,where the matching evaluation degree is used to indicate properness ofthe image composition relationship.

With reference to the first aspect, in a first optional implementationmanner, before the step of after determining a first subject with whicha user is concerned in the first content, acquiring an image compositionrelationship between a second subject in the first content and the firstsubject, the method further includes selecting, by the user, the firstsubject of concern in the first content.

With reference to the first aspect, in a second optional implementationmanner, before the step of acquiring an image composition relationshipbetween a second subject in the first content and the first subject, themethod further includes recognizing the first subject according tosubject images in a preset subject image library; and correspondingly,before the step of matching the image composition relationship betweenthe second subject and the first subject with a preset image compositiontemplate, the method further includes searching, according to therecognized first subject, an image composition template library for animage composition template corresponding to the first subject, and usingthe found image composition template corresponding to the first subjectas the preset image composition template.

With reference to the first aspect, in a third optional implementationmanner, the preset image composition template is a golden sectiontemplate, a compact template, a triangular image composition template, adiagonal image composition template, a vertical line image compositiontemplate, or a horizontal line image composition template.

According to a second aspect, an embodiment of the present inventionprovides a photographing device, which includes: a first acquiring unitconfigured to acquire to-be-photographed first content; a secondacquiring unit configured to, after the first acquiring unit acquiresthe first content, and after a first subject with which a user isconcerned in the first content is determined, acquire an imagecomposition relationship between a second subject in the first contentand the first subject, where the second subject is a background subjectin the first content except the first subject; a matching unitconfigured to, after the second acquiring unit acquires the imagecomposition relationship, match the image composition relationshipbetween the second subject and the first subject with a preset imagecomposition template to obtain a matching evaluation degree; and animage composition adjustment suggestion obtaining unit configured to,after the matching unit obtains the matching evaluation degree, providean image composition adjustment suggestion on the first content for theuser according to the matching evaluation degree and the preset imagecomposition template, where the adjustment suggestion is a tip on how toadjust the image composition relationship in the first content, so thatthe image composition relationship completely matches the preset imagecomposition template, and the matching evaluation degree is used toindicate properness of the image composition relationship.

With reference to the second aspect, in a first optional implementationmanner, the photographing device further includes: a first subjectselection unit configured to, after the first acquiring unit acquiresthe first content, select, by the user, the first subject of concern inthe first content.

With reference to the second aspect, in a second optional implementationmanner, the photographing device further includes: a recognition unitconfigured to, after the first acquiring unit acquires the firstcontent, and after a first subject with which the user is concerned inthe first content is determined, recognize the first subject accordingto subject images in a preset subject image library; and an imagecomposition template selection unit configured to, after the recognitionunit recognizes the first subject, search, according to the recognizedfirst subject, an image composition template library for an imagecomposition template corresponding to the first subject, and use thefound image composition template corresponding to the first subject asthe preset image composition template.

According to a third aspect, an embodiment of the present inventionfurther provides a photo management method, which includes: selecting ato-be-evaluated photo, and obtaining a main subject and a backgroundsubject of the photo according to a focal point of the photo;determining an image composition relationship between the main subjectand the background subject; matching the image composition relationshipbetween the main subject and the background subject with a preset imagecomposition template to obtain a matching evaluation degree; andclassifying the photo according to the matching evaluation degree, wherethe matching evaluation degree is used to indicate properness of theimage composition relationship.

With reference to the third aspect, in a first optional implementationmanner, the preset image composition template is a golden sectiontemplate, a compact template, a triangular image composition template, adiagonal image composition template, a vertical line image compositiontemplate, or a horizontal line image composition template.

According to a fourth aspect, an embodiment of the present inventionprovides a photo management apparatus, which includes: a selection unitconfigured to select a to-be-evaluated photo, and obtain a main subjectand a background subject of the photo according to a focal point of thephoto; a determining unit configured to, after the selection unitobtains the main subject, determine an image composition relationshipbetween the main subject and the background subject; a matching unitconfigured to, after the determining unit determines the imagecomposition relationship, match the image composition relationshipbetween the main subject and the background subject with a preset imagecomposition template to obtain a matching evaluation degree; and aclassification unit configured to, after the matching unit obtains thematching evaluation degree, classify the photo according to the matchingevaluation degree, where the matching evaluation degree is used toindicate properness of the image composition relationship.

As can be learned from the foregoing technical solutions, in aphotographing method, and a photo management method and device in theembodiments of the present invention, a first subject with which a useris concerned is determined in to-be-photographed first content to obtainan image composition relationship between the first subject and a secondsubject in the first content, further, the image compositionrelationship is matched with a preset image composition template toobtain a matching evaluation degree, and further, an image compositionadjustment suggestion on the first content is provided for the useraccording to the matching evaluation degree, so as to solve the problemin the prior art that in a photographing process, image compositionquality of photographing cannot be determined or adjusted, which resultsin a poor photographing result; in addition, and further solve theproblem in the prior art that a smart camera cannot automatically managea photo.

BRIEF DESCRIPTION OF DRAWINGS

To describe the technical solutions in the embodiments of the presentinvention more clearly, the following briefly introduces theaccompanying drawings required for describing the embodiments. Theaccompanying drawings in the following description show some embodimentsof the present invention, and a person of ordinary skill in the art maystill derive other drawings from these accompanying drawings withoutcreative efforts.

FIG. 1 is a schematic flowchart of a photographing method according toan embodiment of the present invention;

FIG. 2A is a schematic flowchart of a photographing method according toanother embodiment of the present invention;

FIG. 2B is a schematic diagram of photographed content according to anembodiment of the present invention;

FIG. 2C is a schematic outline diagram of a first subject in FIG. 2B;

FIG. 2D is a schematic outline diagram of a subject in a subjectrecognition library according to an embodiment of the present invention;

FIG. 3A is a schematic diagram of an image composition templateaccording to an embodiment of the present invention;

FIG. 3B to FIG. 3E are schematic diagrams of adjustment of photographedfirst content according to an embodiment of the present invention;

FIG. 3F is a schematic diagram of an image composition templateaccording to another embodiment of the present invention;

FIG. 3G is a schematic diagram of adjustment of photographed firstcontent according to another embodiment of the present invention;

FIG. 3H is a schematic diagram of an image composition templateaccording to another embodiment of the present invention;

FIG. 3I is a schematic diagram of adjustment of photographed firstcontent according to another embodiment of the present invention;

FIG. 3J is a schematic diagram of an image composition templateaccording to another embodiment of the present invention;

FIG. 3K is a schematic diagram of adjustment of photographed firstcontent according to another embodiment of the present invention;

FIG. 4A and FIG. 4B are schematic structural diagrams of a photographingdevice according to an embodiment of the present invention;

FIG. 4C is a schematic diagram of a partial structure of a photographingdevice according to another embodiment of the present invention;

FIG. 5 is a schematic flowchart of a photo management method accordingto an embodiment of the present invention;

FIG. 6A and FIG. 6B are schematic structural diagrams of a photomanagement apparatus according to an embodiment of the presentinvention;

FIG. 6C is a schematic diagram of a partial structure of a photomanagement apparatus according to an embodiment of the presentinvention; and

FIG. 7 is a schematic structural diagram of a photographing deviceaccording to an embodiment of the present invention.

DESCRIPTION OF EMBODIMENTS

To make the objectives, technical solutions, and advantages of thepresent invention clearer, the following clearly describes the technicalsolutions of the present invention with reference to the accompanyingdrawings in the embodiments of the present invention. The describedembodiments are a part of the embodiments of the present invention.Based on the embodiments of the present invention, a person of ordinaryskill in the art can obtain other embodiments which can solve thetechnical problem of the present invention and implement the technicaleffect of the present invention by equivalently altering a part of orall the technical features even without creative efforts. Theembodiments obtained through alteration do not depart from the scopedisclosed in the present invention.

An embodiment of the present invention provides a photographing method,where the photographing method is capable of image composition qualityanalysis and evaluation, and enables a user to automatically adjustimage composition and a layout according to an image compositionanalysis suggestion.

First Embodiment

FIG. 1 shows a photographing method according to an embodiment of thepresent invention. As shown in FIG. 1, the photographing method in thisembodiment is described as follows:

101. Acquire to-be-photographed first content.

102. After determining a first subject with which a user is concerned inthe first content, acquire an image composition relationship between asecond subject in the first content and the first subject, where thesecond subject is a background subject in the first content except thefirst subject.

For example, the first subject may be a partial close-up of a building,a partial close-up of a landscape, a person, multiple persons, an areain a range, or a river, a section of path, or the like.

If the first subject is a river, trees around the river, and the likeare all the background subject.

It should be noted that the first subject in this embodiment may bemultiple areas in the first content.

103. Match the image composition relationship between the second subjectand the first subject with a preset image composition template to obtaina matching evaluation degree.

The image composition relationship in this embodiment refers to arelative location relationship of the first subject in the secondsubject. In addition, the matching evaluation degree in this embodimentis used to indicate properness of the image composition relationship.

Currently, image composition is defined as follows: an image to be shownis properly organized according to requirements of a topic and a themeto form a harmonious and complete picture, which is referred to as imagecomposition.

For example, the matching evaluation degree may be a qualitativeevaluation such as “good”, “excellent”, or “poor”, or may be aquantitative evaluation such as a rating of “5 points”, “3 points”, or“1 point”.

It can be understood that matching the image composition relationshipbetween the second subject and the first subject with a preset imagecomposition template can be understood as location matching performedusing the image composition relationship and a special line or a specialpoint in the preset image composition template, for example, a locationof an outline of the first subject in the image composition relationshipis close to a golden section point in a golden section template or isnot close to a golden section point in a golden section template; and ifthe location of the outline of the first subject in the imagecomposition relationship is close to the golden section point in thegolden section template, the matching evaluation degree is high.

Alternatively, whether a location of an outline of the first subject inthe image composition relationship falls within an area formed by goldensection points in a golden section template or does not fall within anarea formed by golden section points in a golden section template, andif yes, the matching evaluation degree is high. Details are as thosedescribed in the following FIG. 3A to FIG. 3K.

The preset image composition template in this embodiment may be a goldensection template, a compact template, a triangular image compositiontemplate, a diagonal image composition template, a vertical line imagecomposition template, and/or a horizontal line image compositiontemplate, an asymmetric image composition template, an S-shaped imagecomposition template, an X-shaped image composition template, or thelike.

104. Provide an image composition adjustment suggestion on the firstcontent for the user according to the matching evaluation degree and thepreset image composition template, where the adjustment suggestion is atip on how to adjust the image composition relationship in the firstcontent, so that the image composition relationship completely matchesthe preset image composition template.

For example, the image composition adjustment suggestion may be givenusing an illustration. For example, the illustration includes an arrowindicating a direction of adjustment, a dotted box of an ideal imagecomposition location (as shown in FIG. 3B and FIG. 3C), or the like.

In another embodiment, the image composition adjustment suggestion mayalso be given by means of words, or the image composition adjustmentsuggestion is prompted by means of a voice, or the like.

As can be learned from the foregoing embodiment, in a photographingmethod in this embodiment, after a first subject with which a user isconcerned is determined in to-be-photographed first content, an imagecomposition relationship between the first subject and a second subjectin the first content is obtained, further, the image compositionrelationship is matched with a preset image composition template toobtain a matching evaluation degree, and further, an image compositionadjustment suggestion on the first content is provided for the useraccording to the matching evaluation degree, so as to solve the problemin the prior art that in a photographing process, image compositionquality of photographing cannot be determined or adjusted, which resultsin a poor photographing result.

For example, the foregoing step 101 to step 104 in FIG. 1 may beexecuted by any device with a photographing function, such as a camera,a mobile phone with a photographing function, a computer with aphotographing function, or a tablet computer with a photographingfunction.

It can be understood that, in an actual application, a display unit ofany photographing device can display to-be-photographed first content,and here the first content is framed content of the photographingdevice, that is, content to be photographed as a photo by thephotographing device. For example, a display screen of the cameradisplays content seen by a lens of the photographing apparatus.

In an optional implementation manner, after step 101 of the foregoingphotographing method, the photographing method may further include thefollowing step 101 a that is not shown in the drawing:

101 a. The user selects the first subject of concern in the firstcontent.

In other words, before the foregoing step 102, the determining the firstsubject with which the user is concerned in the first content may bethat the user selects a part of content in the first content as thefirst subject of concern. For example, the display screen describedabove is a touch screen, and the user can select a subject on the touchscreen as the first subject of concern. Generally, the user may selectthe first subject of concern by tapping, double tapping, sliding,drawing a circle, or the like.

The first subject herein may be a subject, a person, a building, or thelike in the first content. In another embodiment, the first subject mayfurther be a subject that is currently focused on by a camera and isused by default as the subject with which a user is concerned.

As shown in FIG. 2A, in a second optional implementation manner, beforethe step of “acquiring an image composition relationship between asecond subject in the first content and the first subject” in step 102,the photographing method may further include the following step 102 a:

102 a. Recognize the first subject according to subject images in apreset subject image library.

For example, model diagrams of multiple subject images are stored in thesubject image library in this embodiment, such as models of an apple, agraphic building, a river, a mountain, and a person.

If the user touches the screen using a unit, the photographing devicedetects that the user touches a plane being an area A with a finger, andas shown in FIG. 2B, in this case, the photographing device extends thearea A, which is used as a basic point, to a surrounding until an edgeof the subject, that is a location where a jump occurs in a depth. Inthis way, the outline of the first subject is extracted, and the firstsubject is recognized as a person, an animal, a plant, or the like, bybeing compared with the subject image library.

For example, first a color quantity corresponding to each pixel isanalyzed. For example, three components red (R), green (G), and blue (B)are used for representing each pixel of a color image, and eachcomponent has 8 bits. In this way, one pixel is represented using 24bits in total, that is, the pixel depth is 24. Each pixel may be one of16,777,216 (2 to the power of 24) colors.

Second, with gradual outward extension of pixel point analysis, when thecolor quantity of a related pixel greatly differs from the colorquantity of a pixel that is extended outward, it is considered that itmay be an outline.

Subsequently, many outlines obtained by analyzing a pixel quantity areanalyzed comprehensively, and are compared with the subject imagerecognition library, so that what subject it is may be obtained.

As shown in FIG. 2C and FIG. 2D, FIG. 2C is a first subject with which auser is concerned in first content, and FIG. 2D is a preset subjectimage in a subject image library.

To compare a first image with subject images in the subject imagelibrary is: searching for some special points in the outline of thefirst subject (such as an angular location, or a location of a turningpoint), for example, A1, B1, C1, D1, and E1 in FIG. 2C. A layout featureand proportion of the first subject are analyzed according to thespecial points, a subject that has a layout feature with a highsimilarity with that of the first subject is found in the subject imagelibrary, and what the first subject is may be recognized according to asubject name in the subject image library.

Optionally, after the first subject is recognized, detailed features ofthe first subject may further be found by means of histogram analysis,lighting analysis, facial recognition, and the like.

103 a. Search, according to the recognized first subject, an imagecomposition template library for an image composition templatecorresponding to the first subject, and use the found image compositiontemplate corresponding to the first subject as a preset imagecomposition template.

Generally, after the first subject is recognized, an image compositiontemplate corresponding to an image composition relationship between thesecond subject and the first subject may be selected according to atable (for example, Table 1 as follows) of preset image compositiontemplates and subjects of concern.

TABLE 1 First subject of concern Image composition template Partialclose-up Compact layout, and big and small layout One person or subjectGolden section, and centripetal image composition Two persons orsubjects Big and small, and symmetrical image composition Three personsor subjects Triangular image composition, and diagonal image compositionMultiple persons or subjects (high Vertical line image composition,horizontal line mountains, waterfalls, buildings, or the imagecomposition, and diagonal image like) composition An area in a range,and a distant landscape Golden section, and asymmetric image compositionA (section of) path, river, winding path, or S-shaped image composition,X-shaped image the like composition, and diagonal image composition

The photographing method in the foregoing embodiment can well solve theproblem in the prior art that in a photographing process, imagecomposition quality of photographing cannot be determined or adjusted,which results in a poor photographing result.

In another embodiment, step 103 and step 104 in FIG. 1 are used as anexample for description.

As shown in FIG. 3A, if the preset image composition template is agolden section image composition template:

In step 103, when matching the image composition relationship betweenthe second subject and the first subject with the golden section imagecomposition template, the photographing device analyzes relativelocations of the current second subject and first subject. For example,first, the outline of the first subject of concern; second, detectingwhether the outline of the first subject is close to all golden sectionpoints in the golden section image composition template (that is,whether close to four “cross” marks in FIG. 3A). If the outline of thefirst subject is close to all golden section points, the imagecomposition relationship between the second subject and the firstsubject can obtain a high matching evaluation degree.

It can be understood that if the first subject is a range, for example,a rectangular box, the photographing device first detects whether anedge of the first subject is close to a golden section line (forexample, four dotted lines in FIG. 3A). If the edge of the first subjectis close to the golden section line, the image composition relationshipbetween the second subject and the first subject has a high matchingevaluation degree.

In step 104, the image composition adjustment suggestion on the firstcontent is provided for the user/photographer according to the matchingevaluation degree and the golden section image composition template,where the adjustment suggestion is a tip on how to adjust the imagecomposition relationship in the first content, so that the imagecomposition relationship completely matches the preset image compositiontemplate.

In other words, as shown in FIG. 3B, the illustrated image compositionadjustment suggestion may be a suggestion, given through a pointingarrow, for moving the first subject to locations of the four cross marksin FIG. 3A.

In addition, as shown in FIG. 3C, if the second subject is a range, theillustrated image composition adjustment suggestion is that the edge ofthe first subject be as close to the golden section line as possible.

In FIG. 3B, when the photographing device detects that a location of ahouse (that is, the first subject) relative to a location of thebackground (the second subject) is backward, and after matching theimage composition relationship with the golden section image compositiontemplate, learns that the first subject in the image compositionrelationship is close to a lower left golden section point. Aftermatching, comparison, and computation, the photographing device gives amatching evaluation degree, and at the same time, gives an imagecomposition adjustment suggestion. For example, it is suggested that thelocation of the house in a viewfinder frame may be close to a locationof the dotted line, and further, after the user performs adjustment inthe viewfinder frame according to the image composition adjustmentsuggestion, the matching evaluation degree is updated accordingly at thesame time (as shown in the right diagram in FIG. 3B).

In FIG. 3C, in the left diagram of FIG. 3C, when the photographingdevice detects that a horizontal plane (an edge of a range, that is, thefirst subject) is closer to a location of a golden section line in thegolden section image composition template, after matching the imagecomposition relationship with the golden section image compositiontemplate, the photographing device obtains that the first subject in theimage composition relationship is closer to a location of a lowersection line. In this case, after matching, comparison, and computing, amatching evaluation degree is given, and further, an image compositionadjustment suggestion is given, where the image composition adjustmentsuggestion may be an illustrated suggestion, which suggests that theuser adjust framing according to a direction of the dotted line. Afterthe user adjusts the framing according to the image compositionadjustment suggestion, the matching evaluation degree is refreshedimmediately, as shown in the right diagram of FIG. 3C.

In another embodiment, as shown in the left diagram or the right diagramof FIG. 3D, the preset image composition template may be a compact imagecomposition template.

When the photographing device matches the image composition relationshipbetween the second subject and the first subject with the compact imagecomposition template, if the first subject stands out as a wholerelative to the location the second subject, and is close to a centralarea of the first content, a relative rating, of the matching evaluationdegree, provided by the photographing device is high.

In this case, when the image composition adjustment suggestion is givenin step 104, it may be suggested, using an illustration, that the firstsubject is better placed in the central area, and the edge of the firstsubject better fill the picture, enabling the picture to be rich incompact, delicate, and microcosmic features.

If the photographing device detects that a partial close-up of a humanface (that is, the first subject) relative to the entire imagecomposition background is backward, the photographing device matches theimage composition relationship with the compact image compositiontemplate, and learns that a location of the human face in the screen isnot far from a location of a central subject, but is not very full, andtherefore a rating of the matching evaluation degree of the firstcontent is medium, as shown in the left diagram of FIG. 3E.

In this case, the image composition adjustment suggestion provided instep 104 may suggest, using an illustration, that a location of theclose-up of the portrait cover more in a central area of the subject,and other elements of the portrait cover an outer edge area as much aspossible. After the user/photographer adjusts the location of the firstsubject, the rating of the matching evaluation degree is refreshedimmediately, as shown in the right diagram of FIG. 3E.

As shown in FIG. 3F, in a third embodiment, the preset image compositiontemplate may be a triangular image composition template. When thephotographing device matches the image composition relationship betweenthe second subject and the first subject with the triangular imagecomposition template, the photographing device analyzes whether threeoutlines of the image composition relationship between the first subjectand the second subject form a triangle in a center of a framed picture.

If the three outlines of the image composition relationship between thefirst subject and the second subject form a rich triangle in the centerof the framed picture, a better matching evaluation degree is obtained.

In FIG. 3G, when three points of interest of the image compositionrelationship between the first subject (the subject of concern) and thesecond subject (the background subject) are three little balls, theimage composition relationship is matched with the triangular imagecomposition template.

The triangle in the left diagram of FIG. 3G (the image compositionrelationship between the first subject and the second subject) is notbalanced enough, and therefore, a point value of the matching evaluationdegree is a rating of “ordinary”.

Accordingly, in step 104, the image composition adjustment suggestionmay suggest, using an illustration, that a location of a little ballbehind move slightly upwards to form a fuller and more balanced imagecomposition relationship. After the user/photographer adjusts framing ofthe first content, the rating of the matching evaluation degree in step103 is refreshed immediately. As shown in the right diagram of FIG. 3G,the user raises a location for framing, and achieves an effect thatthree balls form a triangle, so that the whole image composition is morebalanced and stable.

As shown in FIG. 3H, in a fourth embodiment, the preset imagecomposition template may be a diagonal image composition template.

When a photographing device matches the image composition relationshipbetween the second subject and the first subject with a diagonal imagecomposition template, the photographing device analyzes whether theimage composition relationship between the first subject and the secondsubject is in two diagonal lines, and if an angle between the firstsubject in the image composition relationship and one of the diagonallines is smaller, an obtained rating of the matching evaluation degreeis higher, and the image composition adjustment suggestion obtained instep 104 may suggest that the user adjust a framing angle of the firstcontent.

After the first content is adjusted according to the image compositionadjustment suggestion corresponding to the diagonal image compositiontemplate, the photographed first content is made to seem stereoscopic,extended, and dynamic.

As shown in the left diagram of FIG. 3I, when the subject of concern(that is, the first subject) is a river, the photographing devicegenerally chooses to match the image composition relationship betweenthe first subject and the second subject with the diagonal imagecomposition template. When it is found after matching that a path of theriver is closer to a diagonal line from the lower left to the upperright, the matching evaluation degree is given a good rating, and instep 104, the image composition adjustment suggestion may suggest, usingan illustration, that the path of the river be slightly rotated andadjusted to the closer diagonal line. After the user rotates the framingof the first content for adjustment, the rating of the matchingevaluation degree is refreshed immediately, as shown in the rightdiagram of FIG. 3I.

As shown in the left diagram of FIG. 3J, in a fifth embodiment, thepreset image composition template may be a vertical line imagecomposition template. The right diagram of FIG. 3J shows a horizontalline image composition template.

When a photographing device matches an image composition relationshipbetween a second subject and a first subject with a vertical line imagecomposition template, the photographing device analyzes that a subjectof concern (that is, the first subject) and a background subject (thesecond subject) are in parallel vertical lines. When the first subjectand the second subject are closer to the parallel vertical lines (or ahorizontal line) and filling is full, the relative rating of thematching evaluation degree is higher, and in step 104, the imagecomposition adjustment suggestion may suggest, using an illustration,that the user adjust an angle of first content to be vertical.Generally, a vertical line image composition gives a person a visualperception of steadiness, balance, and reliability.

As shown in the left diagram of FIG. 3K, when the subject of concern isa group of buildings, it is found after matching that the group ofbuildings are all in parallel vertical lines, but the content is farfrom being full, and therefore, the rating of the matching evaluationdegree gives an ordinary rating, and in step 104, the image compositionadjustment suggestion may suggest, using an illustration, that the useradjust a focal length to make the group of buildings look fuller in apicture; and further, the user adjusts the focal length or approaches toadjust the framing of the first content, the rating of the matchingevaluation degree is refreshed accordingly, as shown in the rightdiagram of FIG. 3K.

In addition to the foregoing exemplified templates, the imagecomposition template may be an S-shaped image composition template, anX-shaped image composition template, a centripetal image composition (aradially accumulated points image composition) template, a big and smalltemplate, a symmetrical and asymmetric image composition template, orthe like.

A photographing method in this embodiment can enable a user to directlyobtain image composition quality of a photo and obtain an imagecomposition adjustment suggestion on to-be-photographed first content,and after the user adjusts the first content according to the imagecomposition adjustment suggestion, the problem of poor photographingquality in the prior art can be effectively solved.

Second Embodiment

An embodiment of the present invention provides a photographing device,and as shown in FIG. 4A the photographing device in this embodimentincludes: a first acquiring unit 041, a second acquiring unit 042, amatching unit 043, and an image composition adjustment suggestionobtaining unit 044, where the first acquiring unit 041 is configured toacquire to-be-photographed first content; the second acquiring unit 042is configured to, after the first acquiring unit 041 acquires the firstcontent, and after a first subject with which a user is concerned in thefirst content is determined, acquire an image composition relationshipbetween a second subject in the first content and the first subject,where the second subject is a background subject in the first contentexcept the first subject; the matching unit 043 is configured to, afterthe second acquiring unit 042 acquires the image compositionrelationship, match the image composition relationship between thesecond subject and the first subject with a preset image compositiontemplate to obtain a matching evaluation degree; and the imagecomposition adjustment suggestion obtaining unit 044 is configured to,after the matching unit 043 obtains the matching evaluation degree,provide an image composition adjustment suggestion on the first contentfor the user according to the matching evaluation degree and the presetimage composition template, where the adjustment suggestion is a tip onhow to adjust the image composition relationship in the first content,so that the image composition relationship completely matches the presetimage composition template; where the matching evaluation degree is usedto indicate properness of the image composition relationship.

In an optional embodiment, the photographing device may further includea first subject selection unit 045 which is not shown in the drawing,where the first subject selection unit 045 is configured to, after thefirst acquiring unit 041 acquires the first content, select, by theuser, the first subject of concern in the first content.

In another optional embodiment, the photographing device may furtherinclude a recognition unit 046 and an image composition templateselection unit 047 which are not shown in the drawing, where therecognition unit 046 is configured to, after the first acquiring unit041 acquires the first content, and after the first subject with whichthe user is concerned in the first content is determined, recognize thefirst subject according to a subject image in a preset subject imagelibrary; and the image composition template selection unit 047 isconfigured to, after the recognition unit 046 recognizes the firstsubject, search, according to the recognized first subject, an imagecomposition template library for an image composition templatecorresponding to the first subject, and use the found image compositiontemplate corresponding to the first subject as a preset imagecomposition template.

The photographing device in the foregoing embodiment can solve theproblem in the prior art that in a photographing process, imagecomposition quality of photographing cannot be determined or adjusted,which results in a poor photographing result.

In a third optional implementation manner, the photographing device inthis embodiment may include the following functional units. As shown inFIG. 4B, the photographing device includes: a framing unit 21, a displayunit 22, an input unit 23, a subject recognition and analysis unit 24,an image composition analysis and evaluation unit 25, an imagecomposition adjustment suggestion unit 26, a lens control unit 27, and anetwork connection unit 28, where the framing unit 21 is configured topre-frame first content to be photographed by a user, and output theto-be-photographed first content to the display unit 22 for display,where in a specific application, the framing unit 21 may include a lens,a light sensor, and the like; the display unit 22 is configured todisplay the first content to-be-photographed by the user, and mayfurther be configured to display an image composition adjustmentsuggestion, and the like; the input unit 23 is configured to receive achoice input by the user, and select a first subject with which the useris concerned, where the input unit 23 may be various touch sensitivescreens, for example, a capacitive sensing screen, a microwave sensingscreen, a non-contact control output apparatus, and the like; and theinput unit 23 may further be replaced by a focal point analysis unit,and focused content in the to-be-photographed first content is set bydefault as the subject with which the user is concerned; the subjectrecognition and analysis unit 24 is configured to analyze and extractthe first subject with which the user is concerned, and is configured toanalyze and recognize another background subject; and the subjectrecognition and analysis unit 24 may further be configured to analyzedetailed features of the first subject, such as color information, bodytype, and vagueness of an outline; the image composition analysis andevaluation unit 25 is configured to determine an image compositionrelationship between the first subject and a second subject, and makecomparison and analysis to give an image composition quality evaluationaccording to a pre-stored image composition template; and the imagecomposition analysis and evaluation unit 25 further includes an imagecomposition analysis unit 251, an image composition template library252, an image composition comparison unit 253, an image compositionevaluation unit 254, and the like, as shown in FIG. 4C.

The image composition analysis unit 251 is configured to give an imagecomposition relationship between a subject of concern (the firstsubject) and a background subject (the second subject), select a properimage composition template, and the like.

The image composition template library 252 is a knowledge base of imagecomposition templates, and the image composition template library may bestored in a photographing apparatus locally, or may be placed in thecloud using a network. Certainly, the image composition analysis unit251 may also be implemented entirely in the cloud. The image compositiontemplate library includes various image composition templates such asthe examples described above.

The image composition comparison unit 253 is configured to compare theexisting image composition relationship between the first subject andthe second subject in the first content, and a process of matching theimage composition relationship and the image composition template, andanalyze a matching evaluation degree.

The image composition evaluation unit 254 is configured to give anevaluation of the matching evaluation degree after the analysis by theimage composition comparison unit 253.

The image composition adjustment suggestion unit 26 is configured togive an image composition adjustment suggestion according to theanalysis by the image composition analysis and evaluation unit 25, wherethe image composition adjustment suggestion may be given using anillustration, words, a voice prompt, or the like. If the imagecomposition adjustment suggestion is an illustrated suggestion, thesuggestion may include an arrow indicating a direction of adjustment, orgive a dotted box of an ideal image composition location, or the like.

In a specific application, the photographing device may further includea lens control unit 27 configured to control, according to theadjustment suggestion output by the image composition adjustmentsuggestion unit 26, a lens to adjust image composition, where the lenscontrol unit may include a lens adjustment control signal generatingunit and a lens control adjustment execution unit (not shown in thedrawing), and for example, the lens control unit 27 may be a servomotor, where the servo motor may include a front and back adjustmentmotor, and may also include a left and right adjustment motor, an up anddown adjustment motor, and the like.

For example, the image composition adjustment suggestion unit 26 outputsan image composition adjustment suggestion to the lens control unit 27,and the lens control unit 27 adjusts the lens to make the imagecomposition better match the image composition template, so as toimprove the image composition quality. FIG. 3K is used as an example.The image composition adjustment suggestion unit 26 outputs a suggestionfor zooming in the first subject of concern (a group of buildings), andthe lens control unit 27 outputs a control instruction, for example, theservo motor adjusts the lens to zoom in the first subject of concern, soas to implement more flexible image composition adjustment.

In another implementation manner, the foregoing photographing device mayfurther include a network connection unit 28 configured to connect to anetwork, for example, when in a network cloud, the image compositionanalysis and evaluation unit 25 or the image composition templatelibrary may be connected to the network using the network connectionunit 28 to implement a photographing system formed by both thephotographing device and the network, and a function of imagecomposition analysis, evaluation, and suggestion is implemented, wherethe network connection unit 28 may be a wireless cellular system, andmay be a wireless fidelity (WiFi) wireless connection unit, a wirednetwork connection, or the like.

The foregoing photographing device can give an image composition qualityevaluation, so that the user obtains in a timely manner a prompt foradjusting the image composition, and obtains a suggestion for optimizingthe image composition, so that the user can adjust in a timely mannerthe image composition to take a photo of better quality.

Third Embodiment

FIG. 5 shows a photo management method according to an embodiment of thepresent invention. As shown in FIG. 5, the photo management method inthis embodiment is described as follows:

501. Select a to-be-evaluated photo, and obtain a main subject and abackground subject of the photo according to a focal point of the photo.

In another embodiment, a user may input in advance a to-be-evaluatedphoto.

502. Determine an image composition relationship between the mainsubject and the background subject.

503. Match the image composition relationship between the main subjectand the background subject with a preset image composition template toobtain a matching evaluation degree.

In this embodiment, the matching evaluation degree is used to indicateproperness of the image composition relationship.

For example, an image composition relationship between a subject ofconcern and another background subject is analyzed and determined, andis matched with an image composition template in an image compositiontemplate library, and a matching evaluation degree of current imagecomposition by a user is given according to a matching degree.

Alternatively, according to features of the main subject, a preferentialimage composition template is selected for matching, to obtain thematching evaluation degree.

The matching evaluation degree may be a qualitative evaluation such as“good”, “excellent”, or “poor”, or may be a quantitative evaluation suchas a rating of “5 points”, “3 points”, or “1 point”.

Further, a reason for the evaluation may be given, for example, similarto “the head is incomplete”, “the person is too small”, or the like.

Moreover, the preset image composition template may be a golden sectionimage composition template, a compact image composition template, atriangular image composition template, a diagonal image compositiontemplate, a vertical line image composition template, a horizontal lineimage composition template, or the like.

504. Classify the photo according to the matching evaluation degree.

For example, a photo evaluated to be good or better is put into afolder, and a photo evaluated to be poor is put into a folder.

Further, a prompt to the user on whether to delete a photo with poorquality may be included. If the user confirms yes, photos of poor imagecomposition quality may be deleted in batches.

It can be seen from the foregoing embodiment that, in a photographingmanagement method in this embodiment, an image composition relationshipbetween a main subject and a background subject in a to-be-evaluatedphoto is analyzed, an image composition template is further selected,and a matching evaluation degree of the to-be-evaluated photo isacquired, so that the problem in the prior art that a photo cannot beautomatically recognized and managed can be solved.

Fourth Embodiment

FIG. 6A is a schematic structural diagram of a photographing managementapparatus according to an embodiment of the present invention. As shownin FIG. 6, the photo management apparatus in this embodiment includes: aselection unit 061, a determining unit 062, a matching unit 063, and aclassification unit 064, where the selection unit 061 is configured toselect a to-be-evaluated photo, and obtain a main subject and abackground subject of the photo according to a focal point of the photo;the determining unit 062 is configured to, after the selection unit 061obtains the main subject, determine an image composition relationshipbetween the main subject and the background subject; the matching unit063 is configured to, after the determining unit 062 determines theimage composition relationship, match the image composition relationshipbetween the main subject and the background subject with a preset imagecomposition template to obtain a matching evaluation degree; and theclassification unit 064 is configured to, after the matching unit 063obtains the matching evaluation degree, classify the photo according tothe matching evaluation degree, where the matching evaluation degree isused to indicate properness of the image composition relationship.

A photo management apparatus in this embodiment can automaticallyrecognize a photo with poor image composition quality, and classify andmanage photos with poor quality, thereby solving the problem in theprior art that a user needs to recognize the photos one by one andprocessing efficiency is not high.

In another embodiment, FIG. 6B is a schematic structural diagram of aphoto management apparatus according to an embodiment of the presentinvention. As shown in FIG. 6B, the photo management apparatus in thisembodiment includes: an input unit 601, a subject recognition andanalysis unit 602, an image composition analysis and evaluation unit603, a photo category management unit 604, a display unit 605, and anetwork connection unit 606, where the input unit 601 is configured toreceive an input photo on which image composition evaluation andanalysis are to be performed; the subject recognition and analysis unit602 is configured to analyze, extract, and recognize a main subject inthe photo, and configured to analyze and recognize another backgroundsubject; for example, a subject located at a clearest focal point of thephoto is determined as the main subject; and the subject recognition andanalysis unit 602 may further be configured to analyze detailed featuresof a main subject, such as color information, body type, and vaguenessof an outline; the image composition analysis and evaluation unit 603 isconfigured to determine an image composition relationship between asubject of concern and a background subject, and make comparison andanalysis to give an image composition quality evaluation according to apre-stored image composition template; and the image compositionanalysis and evaluation unit 603 may further include an imagecomposition analysis unit 6031, an image composition template library6032, an image composition comparison unit 6033, an image compositionevaluation unit 6034, and the like, as shown in FIG. 6C.

The image composition analysis unit 6031 is configured to give the imagecomposition relationship between the subject of concern and thebackground subject, select a proper image composition template, and thelike.

The image composition template library 6032 is a knowledge base of imagecomposition templates, and the image composition template library may bestored in the photo management apparatus locally, or may be placed inthe cloud using a network. Certainly, the entire image compositionanalysis unit may be implemented in the cloud. The image compositiontemplate library includes various image composition templates such asthe examples described above.

The image composition comparison unit 6033 is configured to compare theimage composition relationship between the subject of concern and thebackground subject with the image composition template.

The image composition evaluation unit 6034 is configured to give amatching evaluation degree according to the analysis by the imagecomposition comparison unit.

The photo category management unit 604 is configured to, according to anevaluation result by the image composition evaluation unit, determine aquality category of a photo, and perform category management.

Further, the photo management apparatus may include a display unit 605configured to output and display a classification result; and mayfurther give a reason for the classification, give a prompt on whether aphoto with poor quality is to be deleted, and the like.

The photo management apparatus may further include a network connectionunit 606 configured to connect to the network, for example, when theimage composition analysis and evaluation unit or the image compositiontemplate library is in the network cloud, it may connect to the networkusing a network connection unit, thereby implementing that this machineforms a photographing system together with the network. The imagecomposition analysis is implemented. The network connection unit 606 maybe a wireless cellular system, may be a WiFi wireless connection unit,or is a wired network connection.

By determining photo image composition quality, a photo managementapparatus of this embodiment automatically recognizes a photo with poorquality, and classifies and manages photos with poor quality, therebysolving the problem in the prior art that a smart camera cannotautomatically manage a photo.

FIG. 7 is a schematic structural diagram of a photographing deviceaccording to an embodiment of the present invention. The foregoingphotographing device in FIG. 4A may be of a structure shown in FIG. 7.

Certainly, in an actual application, the photographing device may alsohave a function of the photo management apparatus. Therefore, the photomanagement apparatus shown in FIG. 6A or FIG. 6B may be a part of thephotographing device.

Persons of ordinary skill in the art may understand that all or a partof the steps of the method embodiments may be implemented by a programinstructing relevant hardware. The program may be stored in a computerreadable storage medium. When the program runs, the steps of the methodembodiments are performed. The foregoing storage medium includes anymedium that can store program code, such as a read-only memory (ROM), arandom access memory (RAM), a magnetic disk, or an optical disc.

Finally, it should be noted that the foregoing embodiments are merelyintended for describing the technical solutions of the present inventionother than limiting the present invention. Although the presentinvention is described in detail with reference to the foregoingembodiments, persons of ordinary skill in the art should understand thatthey may still make modifications to the technical solutions describedin the foregoing embodiments or make equivalent replacements to some orall technical features thereof, without departing from the scope of thetechnical solutions of the embodiments of the present invention.

What is claimed is:
 1. A photographing method, comprising: acquiringto-be-photographed first content; acquiring an image compositionrelationship between a second subject in the first content and the firstsubject after determining a first subject with which a user is concernedin the first content, wherein the second subject is a background subjectin the first content except the first subject; matching the imagecomposition relationship between the second subject and the firstsubject with a preset image composition template to obtain a matchingevaluation degree; and providing an image composition adjustmentsuggestion on the first content for the user according to the matchingevaluation degree and the preset image composition template, wherein theadjustment suggestion is a tip on how to adjust the image compositionrelationship in the first content so that the image compositionrelationship completely matches the preset image composition template,and wherein the matching evaluation degree is used to indicateproperness of the image composition relationship.
 2. The methodaccording to claim 1, wherein before acquiring the image compositionrelationship between the second subject in the first content and thefirst subject, the method further comprises receiving the first subjectof concern in the first content selected by the user.
 3. The methodaccording to claim 1, wherein before acquiring the image compositionrelationship between the second subject in the first content and thefirst subject, the method further comprises recognizing the firstsubject according to subject images in a preset subject image library,and wherein before matching the image composition relationship betweenthe second subject and the first subject with the preset imagecomposition template, the method further comprises: searching, accordingto the recognized first subject, an image composition template libraryfor an image composition template corresponding to the first subject;and using the found image composition template corresponding to thefirst subject as the preset image composition template.
 4. The methodaccording to claim 1, wherein the preset image composition template isone or more of the following: a golden section template, a compacttemplate, a triangular image composition template, a diagonal imagecomposition template, a vertical line image composition template, and ahorizontal line image composition template.
 5. A photographing device,comprising: a first acquiring unit configured to acquireto-be-photographed first content; a second acquiring unit configured to:acquire an image composition relationship between a second subject inthe first content and the first subject after the first acquiring unitacquires the first content, and after a first subject with which a useris concerned in the first content is determined, wherein the secondsubject is a background subject in the first content except the firstsubject; a matching unit configured to match the image compositionrelationship between the second subject and the first subject with apreset image composition template to obtain a matching evaluation degreeafter the second acquiring unit acquires the image compositionrelationship; and an image composition adjustment suggestion obtainingunit configured to provide an image composition adjustment suggestion onthe first content for the user according to the matching evaluationdegree and the preset image composition template after the matching unitobtains the matching evaluation degree, wherein the adjustmentsuggestion is a tip on how to adjust the image composition relationshipin the first content so that the image composition relationshipcompletely matches the preset image composition template, and whereinthe matching evaluation degree is used to indicate properness of theimage composition relationship.
 6. The photographing device according toclaim 5, further comprising a first subject selection unit configured toreceive the first subject of concern in the first content selected bythe user after the first acquiring unit acquires the first content. 7.The photographing device according to claim 5, further comprising: arecognition unit configured to recognize the first subject according tosubject images in a preset subject image library after the firstacquiring unit acquires the first content, and after the first subjectwith which the user is concerned in the first content is determined; andan image composition template selection unit configured to search,according to the recognized first subject, an image composition templatelibrary for an image composition template corresponding to the firstsubject, and use the found image composition template corresponding tothe first subject as the preset image composition template after therecognition unit recognizes the first subject.
 8. A photo managementmethod, comprising: selecting a to-be-evaluated photo; obtaining a mainsubject and a background subject of the photo according to a focal pointof the photo; determining an image composition relationship between themain subject and the background subject; matching the image compositionrelationship between the main subject and the background subject with apreset image composition template to obtain a matching evaluationdegree; and classifying the photo according to the matching evaluationdegree, wherein the matching evaluation degree is used to indicateproperness of the image composition relationship.
 9. The methodaccording to claim 8, wherein the preset image composition template isone or more of the following: a golden section template, a compacttemplate, a triangular image composition template, a diagonal imagecomposition template, a vertical line image composition template, and ahorizontal line image composition template.
 10. A photo managementapparatus, comprising: a selection unit configured to select ato-be-evaluated photo, and obtain a main subject and a backgroundsubject of the photo according to a focal point of the photo; adetermining unit configured to determine an image compositionrelationship between the main subject and the background subject afterthe selection unit obtains the main subject; a matching unit configuredto match the image composition relationship between the main subject andthe background subject with a preset image composition template toobtain a matching evaluation degree after the determining unitdetermines the image composition relationship; and a classification unitconfigured to classify the photo according to the matching evaluationdegree after the matching unit obtains the matching evaluation degree,wherein the matching evaluation degree is used to indicate properness ofthe image composition relationship.